package com.ruoyi.vbze.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 叶片管理对象 leaf
 * 
 * @author vbze
 * @date 2023-02-23
 */
public class Leaf extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 叶片ID */
    private Long id;

    /** 创建人 */
    private String creator;

    /** 叶片所处植株编号 */
    @Excel(name = "叶片所处植株编号")
    private String plantNumber;

    /** 叶位（-1表示剩余叶） */
//    readConverterExp会导致叶位导入时为null
//    @Excel(name = "叶位", readConverterExp = "-=1表示剩余叶")
    @Excel(name = "叶位")
    private Integer leafPlace;

    /** 叶面积 */
    @Excel(name = "叶面积")
    private BigDecimal leafArea;

    /** 叶干重 */
    @Excel(name = "叶干重")
    private BigDecimal leafDryWeight;

    /** 叶片氮含量 */
    @Excel(name = "叶片氮含量")
    private BigDecimal leafNitrogenContent;

    /** 叶绿素a含量 */
    @Excel(name = "叶绿素a含量")
    private BigDecimal chlorophyllAContent;

    /** 叶绿素b含量 */
    @Excel(name = "叶绿素b含量")
    private BigDecimal chlorophyllBContent;

    /** 叶绿素a+b含量 */
    @Excel(name = "叶绿素a+b含量")
    private BigDecimal chlorophyllABContent;

    /** 测量日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "测量日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date measurementDate;

    /** 棉花品种 */
    @Excel(name = "棉花品种")
    private String variety;

    /** 最后修改人 */
    private String lastEditor;

    /** 最后修改时间 */
    private Date lastEditTime;

    /** 叶片备注 */
    @Excel(name = "叶片备注")
    private String description;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setPlantNumber(String plantNumber) 
    {
        this.plantNumber = plantNumber;
    }

    public String getPlantNumber() 
    {
        return plantNumber;
    }
    public void setLeafPlace(Integer leafPlace) 
    {
        this.leafPlace = leafPlace;
    }

    public Integer getLeafPlace() 
    {
        return leafPlace;
    }
    public void setLeafArea(BigDecimal leafArea) 
    {
        this.leafArea = leafArea;
    }

    public BigDecimal getLeafArea() 
    {
        return leafArea;
    }
    public void setLeafDryWeight(BigDecimal leafDryWeight) 
    {
        this.leafDryWeight = leafDryWeight;
    }

    public BigDecimal getLeafDryWeight() 
    {
        return leafDryWeight;
    }
    public void setLeafNitrogenContent(BigDecimal leafNitrogenContent) 
    {
        this.leafNitrogenContent = leafNitrogenContent;
    }

    public BigDecimal getLeafNitrogenContent() 
    {
        return leafNitrogenContent;
    }
    public void setChlorophyllAContent(BigDecimal chlorophyllAContent)
    {
        this.chlorophyllAContent = chlorophyllAContent;
    }

    public BigDecimal getChlorophyllAContent()
    {
        return chlorophyllAContent;
    }
    public void setChlorophyllBContent(BigDecimal chlorophyllBContent)
    {
        this.chlorophyllBContent = chlorophyllBContent;
    }

    public BigDecimal getChlorophyllBContent()
    {
        return chlorophyllBContent;
    }
    public void setChlorophyllABContent(BigDecimal chlorophyllABContent)
    {
        this.chlorophyllABContent = chlorophyllABContent;
    }

    public BigDecimal getChlorophyllABContent()
    {
        return chlorophyllABContent;
    }
    public void setMeasurementDate(Date measurementDate)
    {
        this.measurementDate = measurementDate;
    }

    public Date getMeasurementDate()
    {
        return measurementDate;
    }
    public void setVariety(String variety)
    {
        this.variety = variety;
    }

    public String getVariety()
    {
        return variety;
    }
    public void setLastEditor(String lastEditor) 
    {
        this.lastEditor = lastEditor;
    }

    public String getLastEditor() 
    {
        return lastEditor;
    }
    public void setLastEditTime(Date lastEditTime) 
    {
        this.lastEditTime = lastEditTime;
    }

    public Date getLastEditTime() 
    {
        return lastEditTime;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("plantNumber", getPlantNumber())
            .append("leafPlace", getLeafPlace())
            .append("leafArea", getLeafArea())
            .append("leafDryWeight", getLeafDryWeight())
            .append("leafNitrogenContent", getLeafNitrogenContent())
            .append("chlorophyllAContent", getChlorophyllAContent())
            .append("chlorophyllBContent", getChlorophyllBContent())
            .append("chlorophyllABContent", getChlorophyllABContent())
            .append("measurementDate", getMeasurementDate())
            .append("variety", getVariety())
            .append("lastEditor", getLastEditor())
            .append("lastEditTime", getLastEditTime())
            .append("description", getDescription())
            .toString();
    }
}
